
//
//  UIself.+Ext.swift
//  Swift-sina
//
//  Created by gaoyanyun on 16/5/14.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit
extension UILabel{
    convenience init (cz_text text: String,
        fontSize: CGFloat = 14,
        textColor: UIColor = UIColor.darkGrayColor(),
        alignment: NSTextAlignment = .Left){
        
        self.init()
        
        self.text = text
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        self.textAlignment = alignment
        
        
        self.numberOfLines = 0
        
        sizeToFit()
    }
}
